| |||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||
IntroductionThere are quite a lot commercial or free charting controls available in the market. However, most of the charting requirements are presented with Microsoft Excel charts. In other words, if we can utilize the rich features offered by MS OWC (Office Web Component) including the office charting support, we shall be able to present Microsoft Office charts in web pages. By employing MS OWC technology, there are basically two approaches to
implement the charting control, i.e., server-driven and or client-driven.
The server-driven approach is to render the chart at the server side with
OWC COM class, through .NET interop. Another one is using OWC ActiveX
object. The 2nd approach requires the Office OWC support at the
client side and thus incurs the license issue. In this
Using the codeStep 1: Adding Control ReferenceTo use the custom control, you can include the assembly from the toolbox bar in your VS.NET IDE (Add/Remove items -> locate the assembly -> OK). Once done, you can drag and drop that control into ASP.NET forms in any ASPX page or ASCX page. Step 2: Prepare Chart DataIn order to render the charting, you will have to fill the
As the
The
Render the ChartFinally, it is to invoke the chart rendering from the application code
by calling If any other questions or programming extension requirements, please send to my email box. Thanks. I do all this for the sake of sharing something that can be useful to you. Appendix: CharTypeEnum Definition#region CharTypeEnum
public enum ChartTypeEnum
{
Area = 1, /** must start with value=1 as value=0 cause
display problem in property browser */
AreaStacked,
AreaStacked3D,
BarStacked,
Bar3D,
Column,
ColumnStacked,
Column3DStacked,
Doughnut,
Line,
Line3D,
LineStacked,
Pie,
Pie3D,
PieExploded,
Pie3DExploded,
RadarLine,
ScatterLine
}
#endregionAbout Catiger
| ||||||||||||||||||||||||||||||||||||||||||||
|
|
General comment
News / Info
Question
Answer
Joke / Game
Admin message
| All Topics, C#, .NET >> C# Controls >> Miscellaneous
Controls Updated: 16 Sep 2004 5:37 |
Article content
copyright Catiger, 2004 everything else Copyright © CodeProject, 1999-2006. Web12 | Advertise on The Code Project | Privacy |
| The Ultimate Toolbox • ASP Alliance • Developer Fusion • Developersdex • DevGuru • Programmers Heaven • Planet Source Code • Tek-Tips Forums • |